package com.ywger.service.dto.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author chenmeng
 * @date 2021-11-16 21:54
 * @desc
 */
@Data
public class EnsRegisterParam {
    @NotNull(message = "ens注册天数不能为空且不能小于28")
    @Min(message = "最小天数为28", value = 28)
    Integer durationDay;

    @NotNull(message = "ens 名称列表不能为空")
    @Size(min = 1,message = "数组长度最小为1")
    List<String> ensNameList;
}
